package com.atguigu.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// @SpringBootApplication 只可以扫描自己 project的注解
// @ComponentScan 不仅可以扫描自己包下的,也可以扫描依赖包下的注解
@ComponentScan(basePackages = "com.atguigu.yygh")
@MapperScan("com.atguigu.yygh.hosp.mapper")
// 配置 nacos
@EnableDiscoveryClient
//配置OpenFeign  -->指定要扫描的包
// 指定的话只会默认扫描当前项目的注解
@EnableFeignClients(basePackages = "com.atguigu.yygh")
public class ServiceHospMainStarter {

    public static void main(String[] args) {
        SpringApplication.run(ServiceHospMainStarter.class,args);
    }
}
